package com.light.common;

import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
import com.light.modules.admin.busi.model.ClawBookUrl;
import com.light.modules.admin.busi.model.StockHistoryLog;
import com.light.modules.admin.system.model.*;

/**
 * @author:zhangdb
 * @date:2017/12/08
 */
public class _MappingKit {

    public static void sysMapping(ActiveRecordPlugin arp) {
        arp.addMapping("zcurd_head", ZcurdHead.class);
        arp.addMapping("zcurd_field", ZcurdField.class);
        arp.addMapping("zcurd_head_btn", ZcurdHeadBtn.class);
        arp.addMapping("zcurd_head_js", ZcurdHeadJs.class);
        arp.addMapping("sys_menu", Menu.class);
        arp.addMapping("sys_menu_btn", MenuBtn.class);
        arp.addMapping("sys_menu_datarule", MenuDatarule.class);
        arp.addMapping("sys_user", SysUser.class);
        arp.addMapping("sys_menu_btn", SysMenuBtn.class);
        arp.addMapping("sys_oplog", SysOplog.class);
        arp.addMapping("common_file", CommonFile.class);
        arp.addMapping("task_base", TaskBase.class);
        arp.addMapping("task_log", "id", TaskLog.class);
    }

    public static void busiMapping(ActiveRecordPlugin arp){
        arp.addMapping("stock_history_log", StockHistoryLog.class);
        arp.addMapping("claw_book_url", ClawBookUrl.class);
    }
}
